/*
 * Created on 13 avr. 2005
 *
 */
package communication.pack;
import objects.Station;
import java.util.*;

/**
 * This class representes a TCPackage. it's a Package used in the OLSR protocol
 * containing the MPR list of a station
 * @author equipe SimPack 2005
 *
 *
 */
public class TCPackage extends SMPackage {
	
    Vector myMPRList;
    

    /**
     * constructor of an Package
     * @param r the Station
     * @param sn the sequence number
     * @param sc the hop count
     * @param s the size of the package
     * @param ri the request number
     * @param mprlist the vector containing the mpr list for the packet
     * @param t duree de vie
     */
    public TCPackage(Station r,int sn, int sc, int ri,Vector mpr, int t) {
	super(r,sn, sc, ri, TCPACKAGESIZE,t);
	myMPRList = mpr;
	
    }
    
    public Vector getMyMPRList(){
	return this.myMPRList;
    }
    
    public TCPackage(TCPackage t){
	super(t);
	this.myMPRList=((Vector)((Vector)t.getMyMPRList()).clone());
    }
    
}
